<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="UTF-8">
    <title>管理员还书</title>
    <link rel="stylesheet" href="/css/normalize.css">
    <link rel="stylesheet" href="/css/reset.css">
  </head>
  <body>
    <div style="color:red;" th:text="${rmsg}"></div>
    <table>
      <tr>
        <th>编号</th>
        <th>用户名</th>
        <th>书名</th>
        <th>借书时间</th>
        <th>应返还时间</th>
        <th>实际返还时间</th>
        <th>操作员</th>
        <th>操作</th>
      </tr>
      <tr th:each="recordDO : ${recordDOList}">
        <td th:text="${recordDO.id}"></td>
        <td th:text="${recordDO.username}"></td>
        <td th:text="${recordDO.bookName}"></td>
        <td th:text="${#temporals.format(recordDO.startTime,'yyyy:MM:dd HH:mm:ss')}"></td>
        <td th:text="${#temporals.format(recordDO.endTime,'yyyy:MM:dd HH:mm:ss')}"></td>
        <td th:text="${#temporals.format(recordDO.returnTime,'yyyy:MM:dd HH:mm:ss')}"></td>
        <td th:text="${recordDO.adminName}"></td>
        <td><button><a th:href="@{|/borrowRecord/return?recordId=${recordDO.id}|}">返还</a></button></td>
      </tr>
    </table>
  </body>
</html>